package org.jeese.modules.sys.service.impl;

import java.util.List;

import org.jeese.modules.sys.dao.SysRoleDao;
import org.jeese.modules.sys.entity.SysRole;
import org.jeese.modules.sys.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("sysRoleService")
public class SysRoleServiceImpl implements SysRoleService {
	
	@Autowired
	private SysRoleDao roleDao;
	
	@Override
	public SysRole getRoleById(Long roleId) {
		return roleDao.getRoleById(roleId);
	}

	@Override
	public List<SysRole> getUserRoleList(Long userId) {
		return roleDao.getUserRoleList(userId);
	}

	@Override
	public List<SysRole> getRoleList() {
		return roleDao.getRoleList();
	}

	@Override
	public List<Long> getUserRoleIdList(Long userId) {
		return roleDao.getUserRoleIdList(userId);
	}

}
